<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AtkText</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="ATK - Accessibility Toolkit">
<link rel="up" href="atk.html" title="ATK Library">
<link rel="prev" href="AtkTable.html" title="AtkTable">
<link rel="next" href="AtkUtil.html" title="AtkUtil">
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="atk.html" title="ATK Library">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in ATK 1.3">
<link rel="index" href="ix04.html" title="Index of new symbols in ATK 1.4">
<link rel="index" href="ix05.html" title="Index of new symbols in ATK 1.6">
<link rel="index" href="ix06.html" title="Index of new symbols in ATK 1.9">
<link rel="index" href="ix07.html" title="Index of new symbols in ATK 1.12">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="AtkTable.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="atk.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">ATK - Accessibility Toolkit</th>
<td><a accesskey="n" href="AtkUtil.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#AtkText.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#AtkText.description" class="shortcut">Description</a>
                   | 
                  <a href="#AtkText.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#AtkText.implementations" class="shortcut">Known Implementations</a>
                   | 
                  <a href="#AtkText.signals" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="AtkText"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="AtkText.top_of_page"></a>AtkText</span></h2>
<p>AtkText — The ATK interface implemented by components with text content.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="AtkText.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
                    <a class="link" href="AtkText.html#AtkText-struct" title="AtkText">AtkText</a>;
enum                <a class="link" href="AtkText.html#AtkTextBoundary" title="enum AtkTextBoundary">AtkTextBoundary</a>;
enum                <a class="link" href="AtkText.html#AtkTextClipType" title="enum AtkTextClipType">AtkTextClipType</a>;
                    <a class="link" href="AtkText.html#AtkTextRange" title="AtkTextRange">AtkTextRange</a>;
                    <a class="link" href="AtkText.html#AtkTextRectangle" title="AtkTextRectangle">AtkTextRectangle</a>;
                    <a class="link" href="AtkText.html#AtkAttribute" title="AtkAttribute">AtkAttribute</a>;
typedef             <a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet">AtkAttributeSet</a>;
enum                <a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute">AtkTextAttribute</a>;
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*              <a class="link" href="AtkText.html#atk-text-get-text" title="atk_text_get_text ()">atk_text_get_text</a>                   (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> end_offset);
<a
href="/usr/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html#gunichar"
>gunichar</a>            <a class="link" href="AtkText.html#atk-text-get-character-at-offset" title="atk_text_get_character_at_offset ()">atk_text_get_character_at_offset</a>    (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*              <a class="link" href="AtkText.html#atk-text-get-text-after-offset" title="atk_text_get_text_after_offset ()">atk_text_get_text_after_offset</a>      (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset,
                                                         <a class="link" href="AtkText.html#AtkTextBoundary" title="enum AtkTextBoundary">AtkTextBoundary</a> boundary_type,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *end_offset);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*              <a class="link" href="AtkText.html#atk-text-get-text-at-offset" title="atk_text_get_text_at_offset ()">atk_text_get_text_at_offset</a>         (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset,
                                                         <a class="link" href="AtkText.html#AtkTextBoundary" title="enum AtkTextBoundary">AtkTextBoundary</a> boundary_type,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *end_offset);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*              <a class="link" href="AtkText.html#atk-text-get-text-before-offset" title="atk_text_get_text_before_offset ()">atk_text_get_text_before_offset</a>     (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset,
                                                         <a class="link" href="AtkText.html#AtkTextBoundary" title="enum AtkTextBoundary">AtkTextBoundary</a> boundary_type,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *end_offset);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                <a class="link" href="AtkText.html#atk-text-get-caret-offset" title="atk_text_get_caret_offset ()">atk_text_get_caret_offset</a>           (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text);
void                <a class="link" href="AtkText.html#atk-text-get-character-extents" title="atk_text_get_character_extents ()">atk_text_get_character_extents</a>      (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *x,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *y,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *width,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *height,
                                                         <a class="link" href="AtkUtil.html#AtkCoordType" title="enum AtkCoordType">AtkCoordType</a> coords);
<a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet">AtkAttributeSet</a>*    <a class="link" href="AtkText.html#atk-text-get-run-attributes" title="atk_text_get_run_attributes ()">atk_text_get_run_attributes</a>         (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *end_offset);
<a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet">AtkAttributeSet</a>*    <a class="link" href="AtkText.html#atk-text-get-default-attributes" title="atk_text_get_default_attributes ()">atk_text_get_default_attributes</a>     (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                <a class="link" href="AtkText.html#atk-text-get-character-count" title="atk_text_get_character_count ()">atk_text_get_character_count</a>        (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                <a class="link" href="AtkText.html#atk-text-get-offset-at-point" title="atk_text_get_offset_at_point ()">atk_text_get_offset_at_point</a>        (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> x,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> y,
                                                         <a class="link" href="AtkUtil.html#AtkCoordType" title="enum AtkCoordType">AtkCoordType</a> coords);
<a class="link" href="AtkText.html#AtkTextRange" title="AtkTextRange">AtkTextRange</a>**      <a class="link" href="AtkText.html#atk-text-get-bounded-ranges" title="atk_text_get_bounded_ranges ()">atk_text_get_bounded_ranges</a>         (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a class="link" href="AtkText.html#AtkTextRectangle" title="AtkTextRectangle">AtkTextRectangle</a> *rect,
                                                         <a class="link" href="AtkUtil.html#AtkCoordType" title="enum AtkCoordType">AtkCoordType</a> coord_type,
                                                         <a class="link" href="AtkText.html#AtkTextClipType" title="enum AtkTextClipType">AtkTextClipType</a> x_clip_type,
                                                         <a class="link" href="AtkText.html#AtkTextClipType" title="enum AtkTextClipType">AtkTextClipType</a> y_clip_type);
void                <a class="link" href="AtkText.html#atk-text-get-range-extents" title="atk_text_get_range_extents ()">atk_text_get_range_extents</a>          (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> end_offset,
                                                         <a class="link" href="AtkUtil.html#AtkCoordType" title="enum AtkCoordType">AtkCoordType</a> coord_type,
                                                         <a class="link" href="AtkText.html#AtkTextRectangle" title="AtkTextRectangle">AtkTextRectangle</a> *rect);
void                <a class="link" href="AtkText.html#atk-text-free-ranges" title="atk_text_free_ranges ()">atk_text_free_ranges</a>                (<a class="link" href="AtkText.html#AtkTextRange" title="AtkTextRange">AtkTextRange</a> **ranges);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                <a class="link" href="AtkText.html#atk-text-get-n-selections" title="atk_text_get_n_selections ()">atk_text_get_n_selections</a>           (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*              <a class="link" href="AtkText.html#atk-text-get-selection" title="atk_text_get_selection ()">atk_text_get_selection</a>              (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> selection_num,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *end_offset);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="AtkText.html#atk-text-add-selection" title="atk_text_add_selection ()">atk_text_add_selection</a>              (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> end_offset);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="AtkText.html#atk-text-remove-selection" title="atk_text_remove_selection ()">atk_text_remove_selection</a>           (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> selection_num);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="AtkText.html#atk-text-set-selection" title="atk_text_set_selection ()">atk_text_set_selection</a>              (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> selection_num,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> end_offset);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="AtkText.html#atk-text-set-caret-offset" title="atk_text_set_caret_offset ()">atk_text_set_caret_offset</a>           (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset);
void                <a class="link" href="AtkText.html#atk-attribute-set-free" title="atk_attribute_set_free ()">atk_attribute_set_free</a>              (<a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet">AtkAttributeSet</a> *attrib_set);
<a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute">AtkTextAttribute</a>    <a class="link" href="AtkText.html#atk-text-attribute-register" title="atk_text_attribute_register ()">atk_text_attribute_register</a>         (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        <a class="link" href="AtkText.html#atk-text-attribute-get-name" title="atk_text_attribute_get_name ()">atk_text_attribute_get_name</a>         (<a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute">AtkTextAttribute</a> attr);
<a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute">AtkTextAttribute</a>    <a class="link" href="AtkText.html#atk-text-attribute-for-name" title="atk_text_attribute_for_name ()">atk_text_attribute_for_name</a>         (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        <a class="link" href="AtkText.html#atk-text-attribute-get-value" title="atk_text_attribute_get_value ()">atk_text_attribute_get_value</a>        (<a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute">AtkTextAttribute</a> attr,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> index_);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="AtkText.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GInterface
   +----AtkText
</pre>
</div>
<div class="refsect1" lang="en">
<a name="AtkText.implementations"></a><h2>Known Implementations</h2>
<p>
AtkText is implemented by
 <a class="link" href="AtkNoOpObject.html" title="AtkNoOpObject">AtkNoOpObject</a>.</p>
</div>
<div class="refsect1" lang="en">
<a name="AtkText.signals"></a><h2>Signals</h2>
<pre class="synopsis">
  "<a class="link" href="AtkText.html#AtkText-text-attributes-changed" title='The "text-attributes-changed" signal'>text-attributes-changed</a>"                        : Run Last
  "<a class="link" href="AtkText.html#AtkText-text-caret-moved" title='The "text-caret-moved" signal'>text-caret-moved</a>"                               : Run Last
  "<a class="link" href="AtkText.html#AtkText-text-changed" title='The "text-changed" signal'>text-changed</a>"                                   : Run Last / Has Details
  "<a class="link" href="AtkText.html#AtkText-text-selection-changed" title='The "text-selection-changed" signal'>text-selection-changed</a>"                         : Run Last
</pre>
</div>
<div class="refsect1" lang="en">
<a name="AtkText.description"></a><h2>Description</h2>
<p>
<a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a> should be implemented by <span class="type">AtkObjects</span> on behalf of widgets that
have text content which is either attributed or otherwise non-trivial.
<span class="type">AtkObjects</span> whose text content is simple, unattributed, and very brief
may expose that content via <a class="link" href="AtkObject.html#atk-object-get-name" title="atk_object_get_name ()"><span class="type">atk_object_get_name</span></a> instead; however if the
text is editable, multi-line, typically longer than three or four words,
attributed, selectable, or if the object already uses the 'name' ATK
property for other information, the <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a> interface should be used
to expose the text content.  In the case of editable text content,
<a class="link" href="AtkEditableText.html" title="AtkEditableText"><span class="type">AtkEditableText</span></a> (a subtype of the <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a> interface) should be
implemented instead.
</p>
<p>
<a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a> provides not only traversal facilities and change notification
for text content, but also caret tracking and glyph bounding box
calculations.  Note that the text strings are exposed as UTF-8, and are
therefore potentially multi-byte, and caret-to-byte offset mapping makes
no assumptions about the character length; also bounding box
glyph-to-offset mapping may be complex for languages which use ligatures.
</p>
</div>
<div class="refsect1" lang="en">
<a name="AtkText.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="AtkText-struct"></a><h3>AtkText</h3>
<pre class="programlisting">typedef struct _AtkText AtkText;</pre>
<p>
The AtkText structure does not contain any fields.

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="AtkTextBoundary"></a><h3>enum AtkTextBoundary</h3>
<pre class="programlisting">typedef enum {
  ATK_TEXT_BOUNDARY_CHAR,
  ATK_TEXT_BOUNDARY_WORD_START,
  ATK_TEXT_BOUNDARY_WORD_END,
  ATK_TEXT_BOUNDARY_SENTENCE_START,
  ATK_TEXT_BOUNDARY_SENTENCE_END,
  ATK_TEXT_BOUNDARY_LINE_START,
  ATK_TEXT_BOUNDARY_LINE_END
} AtkTextBoundary;
</pre>
<p>
Text boundary types used for specifying boundaries for regions of text</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="ATK-TEXT-BOUNDARY-CHAR:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_BOUNDARY_CHAR</code></span></p></td>
<td> Boundary is the boundary between characters 
(including non-printing characters)
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-BOUNDARY-WORD-START:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_BOUNDARY_WORD_START</code></span></p></td>
<td> Boundary is the start (i.e. first character) of a word. 
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-BOUNDARY-WORD-END:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_BOUNDARY_WORD_END</code></span></p></td>
<td> Boundary is the end (i.e. last character) of a word.
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-BOUNDARY-SENTENCE-START:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_BOUNDARY_SENTENCE_START</code></span></p></td>
<td> Boundary is the first character in a sentence.
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-BOUNDARY-SENTENCE-END:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_BOUNDARY_SENTENCE_END</code></span></p></td>
<td> Boundary is the last (terminal) character in a sentence; 
in languages which use "sentence stop" punctuation such as English, the boundary is thus the
'.', '?', or similar terminal punctuation character.
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-BOUNDARY-LINE-START:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_BOUNDARY_LINE_START</code></span></p></td>
<td> Boundary is the initial character of the content or a 
character immediately following a newline, linefeed, or return character.
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-BOUNDARY-LINE-END:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_BOUNDARY_LINE_END</code></span></p></td>
<td> Boundary is the linefeed, or return character.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="AtkTextClipType"></a><h3>enum AtkTextClipType</h3>
<pre class="programlisting">typedef enum {
    ATK_TEXT_CLIP_NONE,
    ATK_TEXT_CLIP_MIN,
    ATK_TEXT_CLIP_MAX,
    ATK_TEXT_CLIP_BOTH
} AtkTextClipType;
</pre>
<p>
Describes the type of clipping required.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="ATK-TEXT-CLIP-NONE:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_CLIP_NONE</code></span></p></td>
<td> No clipping to be done
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-CLIP-MIN:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_CLIP_MIN</code></span></p></td>
<td> Text clipped by min coordinate is omitted
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-CLIP-MAX:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_CLIP_MAX</code></span></p></td>
<td> Text clipped by max coordinate is omitted
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-CLIP-BOTH:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_CLIP_BOTH</code></span></p></td>
<td> Only text fully within mix/max bound is retained
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="AtkTextRange"></a><h3>AtkTextRange</h3>
<pre class="programlisting">typedef struct {
  AtkTextRectangle bounds;
  gint start_offset;
  gint end_offset;
  gchar* content;
} AtkTextRange;
</pre>
<p>
A structure used to describe a text range.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a class="link" href="AtkText.html#AtkTextRectangle" title="AtkTextRectangle">AtkTextRectangle</a> <em class="structfield"><code>bounds</code></em>;</span></p></td>
<td> A rectangle giving the bounds of the text range
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <em class="structfield"><code>start_offset</code></em>;</span></p></td>
<td> The start offset of a AtkTextRange
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <em class="structfield"><code>end_offset</code></em>;</span></p></td>
<td> The end offset of a AtkTextRange
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *<em class="structfield"><code>content</code></em>;</span></p></td>
<td> The text in the text range
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="AtkTextRectangle"></a><h3>AtkTextRectangle</h3>
<pre class="programlisting">typedef struct {
  gint x;
  gint y;
  gint width;
  gint height;
} AtkTextRectangle;
</pre>
<p>
A structure used to store a rectangle used by AtkText.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <em class="structfield"><code>x</code></em>;</span></p></td>
<td> The horizontal coordinate of a rectangle
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <em class="structfield"><code>y</code></em>;</span></p></td>
<td> The vertical coordinate of a rectangle
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <em class="structfield"><code>width</code></em>;</span></p></td>
<td> The width of a rectangle
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <em class="structfield"><code>height</code></em>;</span></p></td>
<td> The height of a rectangle
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="AtkAttribute"></a><h3>AtkAttribute</h3>
<pre class="programlisting">typedef struct {
  gchar* name;
  gchar* value;
} AtkAttribute;
</pre>
<p>
A string name/value pair representing a text attribute.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *<em class="structfield"><code>name</code></em>;</span></p></td>
<td> The attribute name. Call <code class="function">atk_text_attr_get_name()</code>
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *<em class="structfield"><code>value</code></em>;</span></p></td>
<td> the value of the attribute, represented as a string. 
Call <code class="function">atk_text_attr_get_value()</code> for those which are strings.
For values which are numbers, the string representation of the number 
is in value.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="AtkAttributeSet"></a><h3>AtkAttributeSet</h3>
<pre class="programlisting">typedef GSList AtkAttributeSet;
</pre>
<p>
This is a singly-linked list (a <a
href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
><span class="type">GSList</span></a>) of <a class="link" href="AtkText.html#AtkAttribute" title="AtkAttribute"><span class="type">AtkAttribute</span></a>. It is
used by <a class="link" href="AtkText.html#atk-text-get-run-attributes" title="atk_text_get_run_attributes ()"><code class="function">atk_text_get_run_attributes()</code></a>, <a class="link" href="AtkText.html#atk-text-get-default-attributes" title="atk_text_get_default_attributes ()"><code class="function">atk_text_get_default_attributes()</code></a>
and <a class="link" href="AtkEditableText.html#atk-editable-text-set-run-attributes" title="atk_editable_text_set_run_attributes ()"><code class="function">atk_editable_text_set_run_attributes()</code></a></p>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="AtkTextAttribute"></a><h3>enum AtkTextAttribute</h3>
<pre class="programlisting">typedef enum
{
  ATK_TEXT_ATTR_INVALID = 0,
  ATK_TEXT_ATTR_LEFT_MARGIN,
  ATK_TEXT_ATTR_RIGHT_MARGIN,
  ATK_TEXT_ATTR_INDENT,
  ATK_TEXT_ATTR_INVISIBLE,
  ATK_TEXT_ATTR_EDITABLE,
  ATK_TEXT_ATTR_PIXELS_ABOVE_LINES,
  ATK_TEXT_ATTR_PIXELS_BELOW_LINES,
  ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP,
  ATK_TEXT_ATTR_BG_FULL_HEIGHT,
  ATK_TEXT_ATTR_RISE,
  ATK_TEXT_ATTR_UNDERLINE,
  ATK_TEXT_ATTR_STRIKETHROUGH,
  ATK_TEXT_ATTR_SIZE,
  ATK_TEXT_ATTR_SCALE,
  ATK_TEXT_ATTR_WEIGHT,
  ATK_TEXT_ATTR_LANGUAGE,
  ATK_TEXT_ATTR_FAMILY_NAME,
  ATK_TEXT_ATTR_BG_COLOR,
  ATK_TEXT_ATTR_FG_COLOR,
  ATK_TEXT_ATTR_BG_STIPPLE,
  ATK_TEXT_ATTR_FG_STIPPLE,
  ATK_TEXT_ATTR_WRAP_MODE,
  ATK_TEXT_ATTR_DIRECTION,
  ATK_TEXT_ATTR_JUSTIFICATION,
  ATK_TEXT_ATTR_STRETCH,
  ATK_TEXT_ATTR_VARIANT,
  ATK_TEXT_ATTR_STYLE,
  ATK_TEXT_ATTR_LAST_DEFINED
} AtkTextAttribute;
</pre>
<p>
Describes the text attributes supported</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="ATK-TEXT-ATTR-INVALID:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_INVALID</code></span></p></td>
<td> Invalid attribute
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-LEFT-MARGIN:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_LEFT_MARGIN</code></span></p></td>
<td> The pixel width of the left margin
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-RIGHT-MARGIN:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_RIGHT_MARGIN</code></span></p></td>
<td> The pixel width of the right margin
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-INDENT:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_INDENT</code></span></p></td>
<td> The number of pixels that the text is indented
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-INVISIBLE:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_INVISIBLE</code></span></p></td>
<td> Either "true" or "false" indicating whether text is visible or not
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-EDITABLE:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_EDITABLE</code></span></p></td>
<td> Either "true" or "false" indicating whether text is editable or not
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-PIXELS-ABOVE-LINES:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_PIXELS_ABOVE_LINES</code></span></p></td>
<td> Pixels of blank space to leave above each newline-terminated line. 
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-PIXELS-BELOW-LINES:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_PIXELS_BELOW_LINES</code></span></p></td>
<td> Pixels of blank space to leave below each newline-terminated line.
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-PIXELS-INSIDE-WRAP:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP</code></span></p></td>
<td> Pixels of blank space to leave between wrapped lines inside the same newline-terminated line (paragraph).
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-BG-FULL-HEIGHT:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_BG_FULL_HEIGHT</code></span></p></td>
<td> "true" or "false" whether to make the background color for each character the height of the highest font used on the current line, or the height of the font used for the current character.
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-RISE:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_RISE</code></span></p></td>
<td> Number of pixels that the characters are risen above the baseline
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-UNDERLINE:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_UNDERLINE</code></span></p></td>
<td> "none", "single", "double" or "low"
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-STRIKETHROUGH:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_STRIKETHROUGH</code></span></p></td>
<td> "true" or "false" whether the text is strikethrough 
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-SIZE:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_SIZE</code></span></p></td>
<td> The size of the characters. 
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-SCALE:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_SCALE</code></span></p></td>
<td> The scale of the characters. The value is a string representation of a double 
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-WEIGHT:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_WEIGHT</code></span></p></td>
<td> The weight of the characters.
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-LANGUAGE:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_LANGUAGE</code></span></p></td>
<td> The language used
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-FAMILY-NAME:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_FAMILY_NAME</code></span></p></td>
<td> The font family name
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-BG-COLOR:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_BG_COLOR</code></span></p></td>
<td> The background color. The value is an RGB value of the format "<code class="literal">u</code>,<code class="literal">u</code>,<code class="literal">u</code>"
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-FG-COLOR:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_FG_COLOR</code></span></p></td>
<td>The foreground color. The value is an RGB value of the format "<code class="literal">u</code>,<code class="literal">u</code>,<code class="literal">u</code>"
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-BG-STIPPLE:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_BG_STIPPLE</code></span></p></td>
<td> "true" if a <a
href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"
><span class="type">GdkBitmap</span></a> is set for stippling the background color.
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-FG-STIPPLE:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_FG_STIPPLE</code></span></p></td>
<td> "true" if a <a
href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"
><span class="type">GdkBitmap</span></a> is set for stippling the foreground color.
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-WRAP-MODE:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_WRAP_MODE</code></span></p></td>
<td> The wrap mode of the text, if any. Values are "none", "char" or "word" 
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-DIRECTION:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_DIRECTION</code></span></p></td>
<td> The direction of the text, if set. Values are "none", "ltr" or "rtl" 
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-JUSTIFICATION:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_JUSTIFICATION</code></span></p></td>
<td> The justification of the text, if set. Values are "left", "right", "center" or "fill" 
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-STRETCH:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_STRETCH</code></span></p></td>
<td> The stretch of the text, if set. Values are "ultra_condensed", "extra_condensed", "condensed", "semi_condensed", "normal", "semi_expanded", "expanded", "extra_expanded" or "ultra_expanded"
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-VARIANT:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_VARIANT</code></span></p></td>
<td> The capitalization variant of the text, if set. Values are "normal" or "small_caps"
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-STYLE:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_STYLE</code></span></p></td>
<td> The slant style of the text, if set. Values are "normal", "oblique" or "italic"
</td>
</tr>
<tr>
<td><p><a name="ATK-TEXT-ATTR-LAST-DEFINED:CAPS"></a><span class="term"><code class="literal">ATK_TEXT_ATTR_LAST_DEFINED</code></span></p></td>
<td> not a valid text attribute, used for finding end of enumeration
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-text"></a><h3>atk_text_get_text ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*              atk_text_get_text                   (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> end_offset);</pre>
<p>
Gets the specified text.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>start_offset</code></em> :</span></p></td>
<td> start position
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>end_offset</code></em> :</span></p></td>
<td> end position
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the text from <em class="parameter"><code>start_offset</code></em> up to, but not including <em class="parameter"><code>end_offset</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-character-at-offset"></a><h3>atk_text_get_character_at_offset ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html#gunichar"
>gunichar</a>            atk_text_get_character_at_offset    (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset);</pre>
<p>
Gets the specified text.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td> position
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the character at <em class="parameter"><code>offset</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-text-after-offset"></a><h3>atk_text_get_text_after_offset ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*              atk_text_get_text_after_offset      (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset,
                                                         <a class="link" href="AtkText.html#AtkTextBoundary" title="enum AtkTextBoundary">AtkTextBoundary</a> boundary_type,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *end_offset);</pre>
<p>
Gets the specified text.
</p>
<p>
If the boundary_type if ATK_TEXT_BOUNDARY_CHAR the character after the 
offset is returned.
</p>
<p>
If the boundary_type is ATK_TEXT_BOUNDARY_WORD_START the returned string
is from the word start after the offset to the next word start.
</p>
<p>
The returned string will contain the word after the offset if the offset 
is inside a word or if the offset is not inside a word.
</p>
<p>
If the boundary_type is ATK_TEXT_BOUNDARY_WORD_END the returned string
is from the word end at or after the offset to the next work end.
</p>
<p>
The returned string will contain the word after the offset if the offset
is inside a word and will contain the word after the word after the offset
if the offset is not inside a word.
</p>
<p>
If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the returned
string is from the sentence start after the offset to the next sentence
start.
</p>
<p>
The returned string will contain the sentence after the offset if the offset
is inside a sentence or if the offset is not inside a sentence.
</p>
<p>
If the boundary_type is ATK_TEXT_BOUNDARY_SENTENCE_END the returned string
is from the sentence end at or after the offset to the next sentence end.
</p>
<p>
The returned string will contain the sentence after the offset if the offset
is inside a sentence and will contain the sentence after the sentence
after the offset if the offset is not inside a sentence.
</p>
<p>
If the boundary type is ATK_TEXT_BOUNDARY_LINE_START the returned
string is from the line start after the offset to the next line start.
</p>
<p>
If the boundary_type is ATK_TEXT_BOUNDARY_LINE_END the returned string
is from the line end at or after the offset to the next line start.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td> position
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>boundary_type</code></em> :</span></p></td>
<td> An <a class="link" href="AtkText.html#AtkTextBoundary" title="enum AtkTextBoundary"><span class="type">AtkTextBoundary</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>start_offset</code></em> :</span></p></td>
<td> the start offset of the returned string
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>end_offset</code></em> :</span></p></td>
<td> the offset of the first character after the 
             returned substring
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the text after <em class="parameter"><code>offset</code></em> bounded by the specified <em class="parameter"><code>boundary_type</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-text-at-offset"></a><h3>atk_text_get_text_at_offset ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*              atk_text_get_text_at_offset         (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset,
                                                         <a class="link" href="AtkText.html#AtkTextBoundary" title="enum AtkTextBoundary">AtkTextBoundary</a> boundary_type,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *end_offset);</pre>
<p>
Gets the specified text.
</p>
<p>
If the boundary_type if ATK_TEXT_BOUNDARY_CHAR the character at the
offset is returned.
</p>
<p>
If the boundary_type is ATK_TEXT_BOUNDARY_WORD_START the returned string
is from the word start at or before the offset to the word start after 
the offset.
</p>
<p>
The returned string will contain the word at the offset if the offset
is inside a word and will contain the word before the offset if the 
offset is not inside a word.
</p>
<p>
If the boundary_type is ATK_TEXT_BOUNDARY_WORD_END the returned string
is from the word end before the offset to the word end at or after the
offset.
</p>
<p>
The returned string will contain the word at the offset if the offset
is inside a word and will contain the word after to the offset if the 
offset is not inside a word.
</p>
<p>
If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the returned
string is from the sentence start at or before the offset to the sentence
start after the offset.
</p>
<p>
The returned string will contain the sentence at the offset if the offset
is inside a sentence and will contain the sentence before the offset 
if the offset is not inside a sentence.
</p>
<p>
If the boundary_type is ATK_TEXT_BOUNDARY_SENTENCE_END the returned string
is from the sentence end before the offset to the sentence end at or
after the offset.
</p>
<p>
The returned string will contain the sentence at the offset if the offset
is inside a sentence and will contain the sentence after the offset 
if the offset is not inside a sentence.
</p>
<p>
If the boundary type is ATK_TEXT_BOUNDARY_LINE_START the returned
string is from the line start at or before the offset to the line
start after the offset.
</p>
<p>
If the boundary_type is ATK_TEXT_BOUNDARY_LINE_END the returned string
is from the line end before the offset to the line end at or after
the offset.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td> position
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>boundary_type</code></em> :</span></p></td>
<td> An <a class="link" href="AtkText.html#AtkTextBoundary" title="enum AtkTextBoundary"><span class="type">AtkTextBoundary</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>start_offset</code></em> :</span></p></td>
<td> the start offset of the returned string
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>end_offset</code></em> :</span></p></td>
<td> the offset of the first character after the 
             returned substring
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the text at <em class="parameter"><code>offset</code></em> bounded by the specified <em class="parameter"><code>boundary_type</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-text-before-offset"></a><h3>atk_text_get_text_before_offset ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*              atk_text_get_text_before_offset     (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset,
                                                         <a class="link" href="AtkText.html#AtkTextBoundary" title="enum AtkTextBoundary">AtkTextBoundary</a> boundary_type,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *end_offset);</pre>
<p>
Gets the specified text.
</p>
<p>
If the boundary_type if ATK_TEXT_BOUNDARY_CHAR the character before the
offset is returned.
</p>
<p>
If the boundary_type is ATK_TEXT_BOUNDARY_WORD_START the returned string
is from the word start before the word start before the offset to 
the word start before the offset.
</p>
<p>
The returned string will contain the word before the offset if the offset
is inside a word and will contain the word before the word before the 
offset if the offset is not inside a word.
</p>
<p>
If the boundary_type is ATK_TEXT_BOUNDARY_WORD_END the returned string
is from the word end before the word end at or before the offset to the 
word end at or before the offset.
</p>
<p>
The returned string will contain the word before the offset if the offset
is inside a word or if the offset is not inside a word.
</p>
<p>
If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the returned
string is from the sentence start before the sentence start before 
the offset to the sentence start before the offset.
</p>
<p>
The returned string will contain the sentence before the offset if the 
offset is inside a sentence and will contain the sentence before the 
sentence before the offset if the offset is not inside a sentence.
</p>
<p>
If the boundary_type is ATK_TEXT_BOUNDARY_SENTENCE_END the returned string
is from the sentence end before the sentence end at or before the offset to 
the sentence end at or before the offset.
</p>
<p>
The returned string will contain the sentence before the offset if the 
offset is inside a sentence or if the offset is not inside a sentence.
</p>
<p>
If the boundary type is ATK_TEXT_BOUNDARY_LINE_START the returned
string is from the line start before the line start ar or before the offset 
to the line start ar or before the offset.
</p>
<p>
If the boundary_type is ATK_TEXT_BOUNDARY_LINE_END the returned string
is from the line end before the line end before the offset to the 
line end before the offset.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td> position
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>boundary_type</code></em> :</span></p></td>
<td> An <a class="link" href="AtkText.html#AtkTextBoundary" title="enum AtkTextBoundary"><span class="type">AtkTextBoundary</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>start_offset</code></em> :</span></p></td>
<td> the start offset of the returned string
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>end_offset</code></em> :</span></p></td>
<td> the offset of the first character after the 
             returned substring
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the text before <em class="parameter"><code>offset</code></em> bounded by the specified <em class="parameter"><code>boundary_type</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-caret-offset"></a><h3>atk_text_get_caret_offset ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                atk_text_get_caret_offset           (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text);</pre>
<p>
Gets the offset position of the caret (cursor).</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the offset position of the caret (cursor).
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-character-extents"></a><h3>atk_text_get_character_extents ()</h3>
<pre class="programlisting">void                atk_text_get_character_extents      (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *x,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *y,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *width,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *height,
                                                         <a class="link" href="AtkUtil.html#AtkCoordType" title="enum AtkCoordType">AtkCoordType</a> coords);</pre>
<p>
Get the bounding box containing the glyph representing the character at 
    a particular text offset.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td> The offset of the text character for which bounding information is required.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td> Pointer for the x cordinate of the bounding box
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td> Pointer for the y cordinate of the bounding box
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td> Pointer for the width of the bounding box
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td> Pointer for the height of the bounding box
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>coords</code></em> :</span></p></td>
<td> specify whether coordinates are relative to the screen or widget window 
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-run-attributes"></a><h3>atk_text_get_run_attributes ()</h3>
<pre class="programlisting"><a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet">AtkAttributeSet</a>*    atk_text_get_run_attributes         (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *end_offset);</pre>
<p>
Creates an <a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> which consists of the attributes explicitly
set at the position <em class="parameter"><code>offset</code></em> in the text. <em class="parameter"><code>start_offset</code></em> and <em class="parameter"><code>end_offset</code></em> are
set to the start and end of the range around <em class="parameter"><code>offset</code></em> where the attributes are
invariant. Note that <em class="parameter"><code>end_offset</code></em> is the offset of the first character
after the range.  See the enum AtkTextAttribute for types of text 
attributes that can be returned. Note that other attributes may also be 
returned.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td> the offset at which to get the attributes
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>start_offset</code></em> :</span></p></td>
<td> the address to put the start offset of the range
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>end_offset</code></em> :</span></p></td>
<td> the address to put the end offset of the range
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> an <a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> which contains the attributes explicitly set
at <em class="parameter"><code>offset</code></em>. This <a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> should be freed by a call to
<a class="link" href="AtkText.html#atk-attribute-set-free" title="atk_attribute_set_free ()"><code class="function">atk_attribute_set_free()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-default-attributes"></a><h3>atk_text_get_default_attributes ()</h3>
<pre class="programlisting"><a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet">AtkAttributeSet</a>*    atk_text_get_default_attributes     (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text);</pre>
<p>
Creates an <a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> which consists of the default values of
attributes for the text. See the enum AtkTextAttribute for types of text 
attributes that can be returned. Note that other attributes may also be 
returned.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> an <a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> which contains the default values of attributes.
at <em class="parameter"><code>offset</code></em>. This <a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> should be freed by a call to
<a class="link" href="AtkText.html#atk-attribute-set-free" title="atk_attribute_set_free ()"><code class="function">atk_attribute_set_free()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-character-count"></a><h3>atk_text_get_character_count ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                atk_text_get_character_count        (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text);</pre>
<p>
Gets the character count.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the number of characters.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-offset-at-point"></a><h3>atk_text_get_offset_at_point ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                atk_text_get_offset_at_point        (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> x,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> y,
                                                         <a class="link" href="AtkUtil.html#AtkCoordType" title="enum AtkCoordType">AtkCoordType</a> coords);</pre>
<p>
Gets the offset of the character located at coordinates <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>
are interpreted as being relative to the screen or this widget's window
depending on <em class="parameter"><code>coords</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td> screen x-position of character
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td> screen y-position of character
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>coords</code></em> :</span></p></td>
<td> specify whether coordinates are relative to the screen or
widget window 
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the offset to the character which is located at
the specified <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> coordinates.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-bounded-ranges"></a><h3>atk_text_get_bounded_ranges ()</h3>
<pre class="programlisting"><a class="link" href="AtkText.html#AtkTextRange" title="AtkTextRange">AtkTextRange</a>**      atk_text_get_bounded_ranges         (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a class="link" href="AtkText.html#AtkTextRectangle" title="AtkTextRectangle">AtkTextRectangle</a> *rect,
                                                         <a class="link" href="AtkUtil.html#AtkCoordType" title="enum AtkCoordType">AtkCoordType</a> coord_type,
                                                         <a class="link" href="AtkText.html#AtkTextClipType" title="enum AtkTextClipType">AtkTextClipType</a> x_clip_type,
                                                         <a class="link" href="AtkText.html#AtkTextClipType" title="enum AtkTextClipType">AtkTextClipType</a> y_clip_type);</pre>
<p>
Get the ranges of text in the specified bounding box.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>rect</code></em> :</span></p></td>
<td> An AtkTextRectagle giving the dimensions of the bounding box.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>coord_type</code></em> :</span></p></td>
<td> Specify whether coordinates are relative to the screen or widget window.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x_clip_type</code></em> :</span></p></td>
<td> Specify the horizontal clip type.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y_clip_type</code></em> :</span></p></td>
<td> Specify the vertical clip type.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> Array of AtkTextRange. The last element of the array returned 
         by this function will be NULL.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  ATK 1.3

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-range-extents"></a><h3>atk_text_get_range_extents ()</h3>
<pre class="programlisting">void                atk_text_get_range_extents          (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> end_offset,
                                                         <a class="link" href="AtkUtil.html#AtkCoordType" title="enum AtkCoordType">AtkCoordType</a> coord_type,
                                                         <a class="link" href="AtkText.html#AtkTextRectangle" title="AtkTextRectangle">AtkTextRectangle</a> *rect);</pre>
<p>
Get the bounding box for text within the specified range.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>start_offset</code></em> :</span></p></td>
<td> The offset of the first text character for which boundary 
       information is required.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>end_offset</code></em> :</span></p></td>
<td> The offset of the text character after the last character 
       for which boundary information is required.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>coord_type</code></em> :</span></p></td>
<td> Specify whether coordinates are relative to the screen or widget window.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>rect</code></em> :</span></p></td>
<td> A pointer to a AtkTextRectangle which is filled in by this function.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  ATK 1.3
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-free-ranges"></a><h3>atk_text_free_ranges ()</h3>
<pre class="programlisting">void                atk_text_free_ranges                (<a class="link" href="AtkText.html#AtkTextRange" title="AtkTextRange">AtkTextRange</a> **ranges);</pre>
<p>
Frees the memory associated with an array of AtkTextRange. It is assumed
that the array was returned by the function atk_text_get_bounded_ranges
and is NULL terminated.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>ranges</code></em> :</span></p></td>
<td> A pointer to an array of  <a class="link" href="AtkText.html#AtkTextRange" title="AtkTextRange"><span class="type">AtkTextRange</span></a> which is to be freed.
</td>
</tr></tbody>
</table></div>
<p class="since">Since  ATK 1.3
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-n-selections"></a><h3>atk_text_get_n_selections ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                atk_text_get_n_selections           (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text);</pre>
<p>
Gets the number of selected regions.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The number of selected regions, or -1 if a failure
  occurred.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-get-selection"></a><h3>atk_text_get_selection ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*              atk_text_get_selection              (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> selection_num,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *end_offset);</pre>
<p>
Gets the text from the specified selection.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>selection_num</code></em> :</span></p></td>
<td> The selection number.  The selected regions are
assigned numbers that correspond to how far the region is from the
start of the text.  The selected region closest to the beginning
of the text region is assigned the number 0, etc.  Note that adding,
moving or deleting a selected region can change the numbering.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>start_offset</code></em> :</span></p></td>
<td> passes back the start position of the selected region
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>end_offset</code></em> :</span></p></td>
<td> passes back the end position of (e.g. offset immediately past) 
the selected region
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the selected text.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-add-selection"></a><h3>atk_text_add_selection ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            atk_text_add_selection              (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> end_offset);</pre>
<p>
Adds a selection bounded by the specified offsets.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>start_offset</code></em> :</span></p></td>
<td> the start position of the selected region
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>end_offset</code></em> :</span></p></td>
<td> the offset of the first character after the selected region.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if success, <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-remove-selection"></a><h3>atk_text_remove_selection ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            atk_text_remove_selection           (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> selection_num);</pre>
<p>
Removes the specified selection.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>selection_num</code></em> :</span></p></td>
<td> The selection number.  The selected regions are
assigned numbers that correspond to how far the region is from the
start of the text.  The selected region closest to the beginning
of the text region is assigned the number 0, etc.  Note that adding,
moving or deleting a selected region can change the numbering.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if success, <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-set-selection"></a><h3>atk_text_set_selection ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            atk_text_set_selection              (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> selection_num,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> start_offset,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> end_offset);</pre>
<p>
Changes the start and end offset of the specified selection.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>selection_num</code></em> :</span></p></td>
<td> The selection number.  The selected regions are
assigned numbers that correspond to how far the region is from the
start of the text.  The selected region closest to the beginning
of the text region is assigned the number 0, etc.  Note that adding,
moving or deleting a selected region can change the numbering.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>start_offset</code></em> :</span></p></td>
<td> the new start position of the selection
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>end_offset</code></em> :</span></p></td>
<td> the new end position of (e.g. offset immediately past) 
the selection
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if success, <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-set-caret-offset"></a><h3>atk_text_set_caret_offset ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            atk_text_set_caret_offset           (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *text,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> offset);</pre>
<p>
Sets the caret (cursor) position to the specified <em class="parameter"><code>offset</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> an <a class="link" href="AtkText.html" title="AtkText"><span class="type">AtkText</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td> position
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if success, <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-attribute-set-free"></a><h3>atk_attribute_set_free ()</h3>
<pre class="programlisting">void                atk_attribute_set_free              (<a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet">AtkAttributeSet</a> *attrib_set);</pre>
<p>
Frees the memory used by an <a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet"><span class="type">AtkAttributeSet</span></a>, including all its
<span class="type">AtkAttributes</span>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>attrib_set</code></em> :</span></p></td>
<td> The <a class="link" href="AtkText.html#AtkAttributeSet" title="AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> to free
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-attribute-register"></a><h3>atk_text_attribute_register ()</h3>
<pre class="programlisting"><a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute">AtkTextAttribute</a>    atk_text_attribute_register         (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Associate <em class="parameter"><code>name</code></em> with a new <a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute"><span class="type">AtkTextAttribute</span></a></p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> a name string
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> an <a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute"><span class="type">AtkTextAttribute</span></a> associated with <em class="parameter"><code>name</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-attribute-get-name"></a><h3>atk_text_attribute_get_name ()</h3>
<pre class="programlisting">const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        atk_text_attribute_get_name         (<a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute">AtkTextAttribute</a> attr);</pre>
<p>
Gets the name corresponding to the <a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute"><span class="type">AtkTextAttribute</span></a></p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td> The <a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute"><span class="type">AtkTextAttribute</span></a> whose name is required
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a string containing the name; this string should not be freed
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-attribute-for-name"></a><h3>atk_text_attribute_for_name ()</h3>
<pre class="programlisting"><a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute">AtkTextAttribute</a>    atk_text_attribute_for_name         (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Get the <a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute"><span class="type">AtkTextAttribute</span></a> type corresponding to a text attribute name.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> a string which is the (non-localized) name of an ATK text attribute.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the <a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute"><span class="type">AtkTextAttribute</span></a> enumerated type corresponding to the specified
name,
         or <span class="type">ATK_TEXT_ATTRIBUTE_INVALID</span> if no matching text attribute is found.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="atk-text-attribute-get-value"></a><h3>atk_text_attribute_get_value ()</h3>
<pre class="programlisting">const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        atk_text_attribute_get_value        (<a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute">AtkTextAttribute</a> attr,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> index_);</pre>
<p>
Gets the value for the index of the <a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute"><span class="type">AtkTextAttribute</span></a></p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td> The <a class="link" href="AtkText.html#AtkTextAttribute" title="enum AtkTextAttribute"><span class="type">AtkTextAttribute</span></a> for which a value is required
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>index_</code></em> :</span></p></td>
<td> The index of the required value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a string containing the value; this string should not be freed;
NULL is returned if there are no values maintained for the attr value. 
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="AtkText.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="AtkText-text-attributes-changed"></a><h3>The <code class="literal">"text-attributes-changed"</code> signal</h3>
<pre class="programlisting">void                user_function                      (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *atktext,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data)      : Run Last</pre>
<p>
The "text-attributes-changed" signal is emitted when the text attributes of 
the text of an object which implements AtkText changes.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>atktext</code></em> :</span></p></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="AtkText-text-caret-moved"></a><h3>The <code class="literal">"text-caret-moved"</code> signal</h3>
<pre class="programlisting">void                user_function                      (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *atktext,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>     arg1,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data)      : Run Last</pre>
<p>
The "text-caret-moved" signal is emitted when the caret position of 
the text of an object which implements AtkText changes.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>atktext</code></em> :</span></p></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>arg1</code></em> :</span></p></td>
<td>The new position of the text caret.

</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="AtkText-text-changed"></a><h3>The <code class="literal">"text-changed"</code> signal</h3>
<pre class="programlisting">void                user_function                      (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *atktext,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>     arg1,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>     arg2,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data)      : Run Last / Has Details</pre>
<p>
The "text-changed" signal is emitted when the text of the object which 
implements the AtkText interface changes, This signal will have a detail 
which is either "insert" or "delete" which identifies whether the text 
change was an insertion or a deletion
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>atktext</code></em> :</span></p></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>arg1</code></em> :</span></p></td>
<td>The position (character offset) of the insertion or deletion.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>arg2</code></em> :</span></p></td>
<td>The length (in characters) of text inserted or deleted.

</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="AtkText-text-selection-changed"></a><h3>The <code class="literal">"text-selection-changed"</code> signal</h3>
<pre class="programlisting">void                user_function                      (<a class="link" href="AtkText.html" title="AtkText">AtkText</a> *atktext,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data)      : Run Last</pre>
<p>
The "text-selection-changed" signal is emitted when the selected text of 
an object which implements AtkText changes.

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>atktext</code></em> :</span></p></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.10</div>
</body>
</html>
